package com.ruoyi.book.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书借阅表对象 t_left
 * 
 * @author ruoyi
 * @date 2022-01-04
 */
public class TLeft extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 借阅id */
    private Long id;

    /** 书籍id */
    @Excel(name = "书籍id")
    private Long bookId;

    /** 书籍名称 */
    private String bookName;

    /** 读者id */
    @Excel(name = "读者id")
    private Long userId;

    /** 读者名称 */
    private String userName;

    /** 是否还书(0:未还;1:已还) */
    private String isLeft;

    /** 还书时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "还书时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }
    public void setBorrowTime(Date borrowTime) 
    {
        this.borrowTime = borrowTime;
    }

    public Date getBorrowTime() 
    {
        return borrowTime;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIsLeft() {
        return isLeft;
    }

    public void setIsLeft(String isLeft) {
        this.isLeft = isLeft;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("userId", getUserId())
            .append("returnTime", getReturnTime())
            .append("borrowTime", getBorrowTime())
            .toString();
    }
}
